package com.example.combwyaq.mvp.contract;

import com.example.combwyaq.mvp.model.IModel;
import com.example.combwyaq.mvp.model.entity.BaseEntity;
import com.example.combwyaq.mvp.viwe.IView;

import java.util.Map;

import io.reactivex.Observable;

public interface LREContract {

    //LREModel
    interface LREModel extends IModel{


        //列表界面中无论多少接口全部合并请求
        Observable<BaseEntity> requestAll(Map<String,Object> ... maps);

        Observable<BaseEntity>request_refresh_load(Map<String,Object> map);


    }
    //LREView
    interface LREView extends IView{
        //全部数据请求返回方法
        void refreshAll(BaseEntity entity);
        //下拉刷新数据返回
        void refreshRecyclerView(BaseEntity entity);
        //上拉加载数据返回
        void loadMoreRecyclerView(BaseEntity entity);
    }


}
